﻿using System;
using TimeTracker.Web.Account.Interface;
using TimeTracker.Web.Account.Presenter;

namespace TimeTracker.Web.Account
{
    public partial class Prijava : System.Web.UI.Page, IPrijavaView
    {
        private PrijavaPresenter _presenter;

        protected void Page_Load(object sender, EventArgs e)
        {
            _presenter = new PrijavaPresenter();
            _presenter.Init(this);
        }

        protected void Prijava_OnClick(object sender, EventArgs e)
        {
            _presenter.Prijava(tbKorisnickoIme.Text, tbLozinka.Text);
        }

        public void PrikaziPoruku(string message)
        {
            lblPorukaVrh.Text = message;
        }
    }
}
